package org.sakai.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.sakai.entity.Departments;

import java.util.List;

/**
* @author Sakai
* @description 针对表【departments(疾病信息表)】的数据库操作Mapper
* @createDate 2025-06-18 22:37:01
* @Entity org.sakai.entity.Departments
*/
@Mapper
public interface DepartmentsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Departments record);

    int insertSelective(Departments record);

    Departments selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Departments record);

    int updateByPrimaryKey(Departments record);

    @Select("select * from departments")
    List<Departments> getDepartmentList();

}
